Skip to content

Cherry-pick #10787 to 7.0: [Heartbeat] Fix missing url.* fields on TCP NXDOMAIN#11202

Merged
andrewvc merged 1 commit intoelastic:7.0from
andrewvc:backport_10787_7.0
Mar 12, 2019
Merged

Cherry-pick #10787 to 7.0: [Heartbeat] Fix missing url.* fields on TCP NXDOMAIN#11202
andrewvc merged 1 commit intoelastic:7.0from
andrewvc:backport_10787_7.0

Conversation

@andrewvc
Copy link
Copy Markdown
Contributor

Cherry-pick of PR #10787 to 7.0 branch. Original message:

TCP checks are not adding URL fields on NXDOMAIN endpoints. This fixes that issue.

It does so by ensuring that URL metadata is added before executing the check, and not during, as done previously.

A side effect of this is that we now perform DNS lookups once per {hostname,port} instead of once per {hostname}. This is worth the increased simplicity however, as the code would be quite convoluted otherwise, which would put us at risk for more bugs.

Related (but different) 6.x issue: #10777

TCP checks are not adding URL fields on NXDOMAIN endpoints. This fixes that issue.

It does so by ensuring that URL metadata is added before executing the check, and not during, as done previously.

A side effect of this is that we now perform DNS lookups once per `{hostname,port}` instead of once per `{hostname}`. This is worth the increased simplicity however, as the code would be quite convoluted otherwise, which would put us at risk for more bugs.

Related (but different) 6.x issue: elastic#10777

Fix import formatting

(cherry picked from commit 821baec)
@andrewvc andrewvc requested a review from a team as a code owner March 11, 2019 23:44
@andrewvc andrewvc merged commit 830f72b into elastic:7.0 Mar 12, 2019
@andrewvc andrewvc deleted the backport_10787_7.0 branch March 12, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants